package com.sz.biz.logistics.core.dto;

import com.sz.biz.logistics.core.entity.Service;
import com.sz.biz.common.base.dto.CountryArea;

import java.util.ArrayList;
import java.util.List;

/**
 * Function: ServiceDto. <br>
 * Date: 2017年02月16日 10:19 <br>
 * Author: wentao.chang
 */
public class ServiceDto extends Service {

    private String userName;

    private String supplierName;
    private String supplierCode;

    private String serviceArea;
    private String serviceTypeName;
    private String subServiceTypeCode;
    private String cargoTypeName;

    private String statusName;

    private String isRequiredInProduct;

    private List<CountryArea> areas = new ArrayList<>();

    private String estimatedUnitName;

    private String lineName;
    private String lineCode;
    private int lineId;

    private String className;

    private List<Integer> classId = new ArrayList<>();

    /**
     * 服务类型集合
     */
    private List<String> serviceTypeCodes = new ArrayList<>();

    private List<String> cargoTypes = new ArrayList<>();

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getServiceArea() {
        return serviceArea;
    }

    public void setServiceArea(String serviceArea) {
        this.serviceArea = serviceArea;
    }

    public List<CountryArea> getAreas() {
        return areas;
    }

    public void setAreas(List<CountryArea> areas) {
        this.areas = areas;
    }

    /**
     * 向地区中添加数据
     *
     * @param area
     */
    public void putArea(CountryArea area) {
        areas.add(area);
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    /**
     * 服务类型集合
     */
    public List<String> getServiceTypeCodes() {
        return serviceTypeCodes;
    }

    /**
     * 服务类型集合
     */
    public void setServiceTypeCodes(List<String> serviceTypeCodes) {
        this.serviceTypeCodes = serviceTypeCodes;
    }

    public List<String> getCargoTypes() {
        return cargoTypes;
    }

    public void setCargoTypes(List<String> cargoTypes) {
        this.cargoTypes = cargoTypes;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public String getCargoTypeName() {
        return cargoTypeName;
    }

    public void setCargoTypeName(String cargoTypeName) {
        this.cargoTypeName = cargoTypeName;
    }

    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getIsRequiredInProduct() {
        return isRequiredInProduct;
    }

    public void setIsRequiredInProduct(String isRequiredInProduct) {
        this.isRequiredInProduct = isRequiredInProduct;
    }

    public String getEstimatedUnitName() {
        return estimatedUnitName;
    }

    public void setEstimatedUnitName(String estimatedUnitName) {
        this.estimatedUnitName = estimatedUnitName;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<Integer> getClassId() {
        return classId;
    }

    public void setClassId(List<Integer> classId) {
        this.classId = classId;
    }

    public String getSubServiceTypeCode() {
        return subServiceTypeCode;
    }

    public void setSubServiceTypeCode(String subServiceTypeCode) {
        this.subServiceTypeCode = subServiceTypeCode;
    }

    public int getLineId() {
        return lineId;
    }

    public void setLineId(int lineId) {
        this.lineId = lineId;
    }

    public String getLineCode() {
        return lineCode;
    }

    public void setLineCode(String lineCode) {
        this.lineCode = lineCode;
    }
}
